﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace wd_29_tab_order_v1
{
    /// <summary>
    /// MainWindow.xaml 的交互逻辑
    /// 按回车键，默认打开button，而不是text控件。
    /// </summary>
    public partial class MainWindow : Window
    {
        public MainWindow()
        {
            // 使用Tab键Focus控件的相关操作
            //https://blog.csdn.net/DynastyRumble/article/details/107177940
            
            InitializeComponent();
        }

        private void Button_Click(object sender, RoutedEventArgs e)
        {
            MessageBox.Show("focus");
        }

        private void Button_Click_1(object sender, RoutedEventArgs e)
        {
            MessageBox.Show("focus-second");
        }
    }
}
